//跨域代理前缀
const API_PROXY_PREFIX='/api'
const BASE_URL = process.env.NODE_ENV === 'production' ? process.env.VUE_APP_API_BASE_URL : API_PROXY_PREFIX
// const BASE_URL = process.env.VUE_APP_API_BASE_URL
module.exports = {
  LOGIN: `${BASE_URL}/login`,
  ROUTES: `${BASE_URL}/routes`,
  GOODS: `${BASE_URL}/goods`,
  GOODS_COLUMNS: `${BASE_URL}/columns`,

  //product
  GET_PRODUCT: `${BASE_URL}/model/v1/things`,

  // device
  GET_THING: `${BASE_URL}/model/v1/things`,
  GET_THING_BY_NAME: `${BASE_URL}/model/v1/thingtypes`,
  GET_EVENT_LIST: `${BASE_URL}/event/v1/events`
}
